<template>
  <jcx-form-table v-model="props.sysPowerVoList" :drag-sort="true" :add-template="addTemplate">
    <el-table-column prop="action" label="请求地址">
      <template #default="scope">
        <el-input v-model="scope.row.action" placeholder="请输入请求地址"></el-input>
      </template>
    </el-table-column>
    <el-table-column prop="code" label="权限标识">
      <template #default="scope">
        <el-input v-model="scope.row.code" placeholder="请输入权限标识"></el-input>
      </template>
    </el-table-column>
    <!--
    <el-row-column prop="sort" label="排序">
      <template #lay-default="scope">
        <el-input-number v-model="scope.row.sort" :min="1" :step="0.001" controls-position="right" size="large"
                         placeholder="请输入排序"></el-input-number>
      </template>
    </el-row-column>
    -->
  </jcx-form-table>
</template>

<script setup>
import {ref} from "vue";

const props = defineProps({
  sysPowerVoList: {
    type: Array,
    default: []
  }
})
const addTemplate = ref({
  id: '',
  menuId: '',
  code: '',
  action: '',
  sort: 0
});
</script>
